package com.tanhua.dubbo.api.mongo;

import com.tanhua.domain.mongo.Voice;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;

/**
 * @Author Jyz
 * @Date 2021/8/22 - 20:42
 * @Description com.tanhua.dubbo.api.db
 * @Since version-11
 */
@Service
public class VoiceApiImpl implements VoiceApi {

    @Autowired
    private MongoTemplate mongoTemplate;
    /**
     * 保存一条语音记录
     * @param voice
     */
    @Override
    public void save(Voice voice) {
        mongoTemplate.save(voice);
    }

}
